while True:
 print("="*8,"自动取款机系统","="*8)
 print("{0:1}{1:13}{2:15}".format("","1.登录","2.退出"))
 print("="*32)
 a=1200
 type(a)
 key=input("请输出对应选择:")
 if key=="1":
    print("1.查询余额")
    print("2,取钱")
    print("3,存钱")
    key2=input("请输入你的选择")
 elif key=="2":
    print("已退出")
    break
 if key2=="1":
        print("你当前的余额为：",a)
 elif key2=="2":
        print("当前的余额为：",a)
        b=input("请输入你想取出钱的金额：")
        if int(b)>a or int(b)<0:
         print("你输入的金额有误")
         break
        elif int(b)<=a and int(b)>0:
         print("你剩余钱的余额为：",a-int(b))
 elif key2=="3":
        print("当前的余额为：",a)
        c=input("请输入你想存入的金额：")
        print("你剩余钱的余额为：",a+int(c))

      
